Operating Systems and Networks

نویسنده

  • Behzad Bordbar
چکیده

Consider a flight with 10 seats and a number of travel agents each trying to book two seats on the flight. 1) Write a class Flight with to integer value attribute for total number of seats and number of booked seats (make them static to simplify) 2) Write a class TravelAgent which is implemeted as a thread. TravelAgent checks if there are two seats available and books them. 3) In Flight, create 10 TravelAgent and let them book. At the end make sure that all threads join(). 4) Print the number of booked seats. (see folder flight_ travelagent_01 for a solution)

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Application of ANN Technique for Interconnected Power System Load Frequency Control (RESEARCH NOTE)

This paper describes an application of Artificial Neural Networks (ANN) to Load Frequency Control (LFC) of nonlinear power systems. Power systems, such as other industrial processes, have parametric uncertainties that for controller design had to take the uncertainties in to account. For this reason, in the design of LFC controller the idea of robust control theories are being used. To improve ...

متن کامل

A Case for Open Network Health Systems: Systems as Networks in Public Mental Health

Increases in incidents involving so-called confused persons have brought attention to the potential costs of recent changes to public mental health (PMH) services in the Netherlands. Decentralized under the (Community) Participation Act (2014), local governments must find resources to compensate for reduced central funding to such services or “innovate.” But innovation, even when pressure for c...

متن کامل

ارزیابی عملکرد بهره برداری از شبکه های آبیاری به روش تحلیل پوششی داده ها (DEA)

Recent studies have shown poor performance of irrigation systems, which indicates the requirement for special attention to performance improvement. The first step for improving the performance of irrigation systems is evaluation of the present situation. Performance evaluation methodologies presented so far are either qualitative such as DA (Diagnostic Analysis), RA (Rapid Appraisal) and FA (Fr...

متن کامل

ارزیابی عملکرد بهره برداری از شبکه های آبیاری به روش تحلیل پوششی داده ها (DEA)

Recent studies have shown poor performance of irrigation systems, which indicates the requirement for special attention to performance improvement. The first step for improving the performance of irrigation systems is evaluation of the present situation. Performance evaluation methodologies presented so far are either qualitative such as DA (Diagnostic Analysis), RA (Rapid Appraisal) and FA (Fr...

متن کامل

A Survey of Concurrency Control Algorithms in the Operating Systems

Concurrency control is one of the important problems in operation systems. Various studies have been reported to present different algorithms to address this problem, although a few attempts have been made to represent an overall view of the characteristics of these algorithms and comparison of their capabilities to each other. This paper presents a survey of the current methods for controlling...

متن کامل

Investigating and Improving the Effect of Distributed Generation on Reliability in Wind Systems by ARMA Method

The increasing development of the use of new energies has led to the widespread use of power electronics, so that electronic power converters play an important role in extracting power from renewable sources. Power electronics can convert raw energy produced from new energy into the desired power with controlled current, voltage and frequency to be used in the power grid. Restructuring of power...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015